#include "share.hpp"
#include <unordered_map>
void Recv()
{
    cout<<"dsada"<<endl;
}
void Write()
{

}
struct Data_buffer
{
    Data_buffer() = default;
    int _sock;
    string _inbuffer;
    string _outbuffer;
    Epoll *_epfd = nullptr;
};
void Handle(int num, const std::unordered_map<int, Data_buffer *>& buffer, const epoll_event* events)
{
    for (int i = 0; i < num; i++)
    {
        if(events[i].events & EPOLLIN)
        {
            Recv();
        }
        if(events[i].events & EPOLLOUT)
        {
            Write();
        }
    }
}